﻿using System;
using System.Diagnostics;
using System.Text;
using BikeBouncer.BusinessLayer.Entities;
using BikeBouncer.BusinessLayer.Enums;

namespace BikeBouncer.BusinessLayer
{
	public class LogManager
	{
		#region API logging

		public class Api
		{
			public static void LogAccessDenied(ApiKey key, String reason)
			{
				String text = reason;

				Log(LogSource.Api, EventLogEntryType.FailureAudit, text);
			}

			public static void LogEntityNotFound(ApiKey key, String entity, String value)
			{
				String text = entity + value;

				Log(LogSource.Api, EventLogEntryType.Error, text);
			}

			public static void LogError(ApiKey key, String method, Exception ex)
			{
				String text = method;

				Log(LogSource.Api, EventLogEntryType.Error, text);
			}

			public static void LogMethod(ApiKey key, String method, params Object[] p)
			{
				String text = method;

				Log(LogSource.Api, EventLogEntryType.Information, text);
			}
		}

		#endregion

		#region Internal save

		private static void Log(LogSource source, EventLogEntryType logType, String text)
		{

		}

		#endregion
	}
}